package models

import (
	"github.com/astaxie/beego/orm"
)

//获取表对象
func getQueryTable(table string) orm.QuerySeter {
	o := orm.NewOrm()
	return o.QueryTable(table)
}

//获取Query构建对象
func GetQueryBuilderMysql() orm.QueryBuilder {
	db, _ := orm.NewQueryBuilder("mysql")
	return db
}
